%% 运行方式1
data_read_args.branch_file_path="./data/运行方式1-branch_reordered.xlsx";
data_read_args.source_file_path="./data/capacity.xlsx";
data_read_args.load_file_path="./data/all_load_node_mapped.xlsx";
opts=jsonl_generate_options('DataHandle',@yantian_vdata,...
    'DataHandleArgs',data_read_args,...
    'GridsFile',".\data\yantian_grid.txt",...
    'SolutionPath',".\data\solution_a1.mat",...
    'JsonlPath','data_topo1.jsonl');
generate_jsonl_dataset(opts);

%% 运行方式2
data_read_args.branch_file_path="./data/运行方式2-branch_reordered.xlsx";
data_read_args.source_file_path="./data/capacity.xlsx";
data_read_args.load_file_path="./data/all_load_node_mapped.xlsx";
opts=jsonl_generate_options('DataHandle',@yantian_vdata,...
    'DataHandleArgs',data_read_args,...
    'GridsFile',".\data\yantian_grid.txt",...
    'SolutionPath',".\data\solution_a2.mat",...
    'JsonlPath','data_topo2.jsonl');
generate_jsonl_dataset(opts);

%% 合并
concat_jsonl(["data_topo1.jsonl","data_topo2.jsonl"],"train_data.jsonl","eval_data.jsonl",0.15);
